<template>
  <div>
    <h1>son</h1>
    <GrandSon />
  </div>
</template>

<script>
import GrandSon from "./GrandSon";
export default {
  name: "Son",
  props: [],
  data() {
    return {};
  },

  components: {
    GrandSon
  },

  computed: {},

  beforeMount() {},

  mounted() {},

  methods: {},

  watch: {}
};

/* 
原生ajax
let xhr
XMLHttpRequest
window.XMLHttpRequest
xhr = new XMLHttpRequest()
ActiveXObject("Microsoft.XMLHTTP")

xhr  = new ActiveXObject("Microsoft.XMLHTTP");

xhr.open()
xhr.send(body)
xhr.onreadystatechange = function(){
    // ajax请求状态
    // 服务器状态 200 302 304 404 403 500 503
    if(xhr.readystate == 4 && xhr.status ==200){
        xhr.responseText
    }
}


vue前后台交互 
vue-resource
axios(官网推荐使用)

*/
</script>
<style lang='' scoped>
</style>